#include <stdio.h>

int main()
{
	int x,m,n,p;
	scanf("%d",&x);
		m =x%10;
	    n =(x/10)%10;
		p =x/100;
		printf("%d %d %d",m,n,p);
	return 0;
}
